package android.tusnotas.parser.folders;

import java.util.List;

import org.htmlcleaner.XPatherException;

import android.tusnotas.beans.Course;
import android.tusnotas.beans.Folder;
import android.tusnotas.exception.ProcessingInstancesException;

import com.thoughtworks.xstream.XStream;

public class FoldersParser {
	public List<Folder> parseXML(String XML) throws ProcessingInstancesException, XPatherException{

		XStream stream = new FoldersXStream();
		
		Course course = ((Course) stream.fromXML(XML));
		
		return course.getFolders();

	}
}
